From Cppreference
| Defined in header <ctime>
|
|
|
|
| time_t time( time_t *time );
|
|
|
|
|
|
Gets the time since epoch as a time_t object.
Parameters
| time
| -
| pointer to a time_t object to store the time in. If NULL is passed instead, internal static object is used
|
Return value
time since epoch as a time_t object on success, -1 on error.
Example
See also
|
|
|
| converts time since epoch to calendar time expressed as local time (function)
|
|
|
|
| converts time since epoch to calendar time expressed as Universal Coordinated Time (function)
|